package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 续报成交数据
 * </p>
 *
 * @author hpiggy
 * @since 2023-06-17
 */
@TableName("deal_info")
@ApiModel(value = "DealInfo对象", description = "续报成交数据")
@Data
public class DealInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("校区")
    private Long schoolId;

    @ApiModelProperty("校区名称")
    @TableField(exist = false)
    private String schoolName;

    @ApiModelProperty("科目")
    private Long subjectsId;

    @ApiModelProperty("学生id")
    private Long studentId;

    @ApiModelProperty("学生名字")
    @TableField(exist = false)
    private String studentName;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("季度:如春续暑的续报为春季id")
    private Integer quarterNum;

    @ApiModelProperty("教师id:如春续暑的续报为春季的带班教师id")
    private Long teacherId;

    @TableField(exist = false)
    private String teacherName;

    @ApiModelProperty("班级id:如春续暑的续报为春季的班级id")
    private Long gradeId;

    @ApiModelProperty("数量")
    private BigDecimal count;

    @ApiModelProperty("订单id:如春续暑的续报为暑假的续班id")
    private Long orderId;

    @ApiModelProperty("订单详情id:如春续暑的续报为暑假的续班id")
    private Long orderDetailId;

    @ApiModelProperty("0正常，1删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("成交日期")
    private LocalDate addDate;

    private LocalDateTime createdAt;

    private LocalDateTime updateAt;

    @ExcelIgnore
    private Long outId;

    @ExcelIgnore
    private Long changeSchoolDetailId;

    @TableField(exist = false)
    private String yearClassName;
}
